Range series
A range series draws each point from a low value to a high value, instead of from zero to a single value. A
RangeLineSeries draws two curves, one through the high values and one through the low values, and fills the band
between them. A RangeColumnSeries draws a vertical bar from the low value to the high value, and a RangeRowSeries
draws a horizontal one. All three take the same data, so this article covers them together.
This article highlights the most used features. Every property is listed in the API explorer:
RangeLineSeries,
RangeColumnSeries and
RangeRowSeries.
In XAML, declare them as XamlRangeLineSeries, XamlRangeColumnSeries and XamlRangeRowSeries.
Range values
The RangeValue class, in the LiveChartsCore.Defaults namespace, holds the two ends of each point in its Low and
High properties. The X coordinate of a point is its index in Values, like a plain number in a line or column
series.
Series = new ISeries[]
{
new RangeLineSeries<RangeValue>
{
Values = new RangeValue[]
{
new(low: 8, high: 16), // mark
new(low: 9, high: 17), // mark
new(low: 11, high: 20) // mark
}
}
};
RangeValue notifies when Low or High change, and the chart updates the point. When either of them is null,
the point is empty: a range line breaks there, and a range bar is not drawn.
To plot your own type, set a Mapping that puts the high value in the PrimaryValue of the coordinate and the low
value in the TertiaryValue, which are the slots RangeValue uses:
new RangeLineSeries<Reading>
{
Values = readings,
// PrimaryValue = high, SecondaryValue = X, TertiaryValue = low
Mapping = (reading, index) =>
new Coordinate(reading.Max, index, reading.Min, 0, 0, 0, Error.Empty) // mark
}
When the axis limits are not set, the value axis grows to fit both the low and the high values.
Range line
Stroke draws both curves and Fill paints the band between them. GeometryFill, GeometryStroke and
GeometrySize style the point drawn at both ends of every value. Set Fill to null to draw only the two curves,
or set Stroke to null to draw only the band. When the paints are not set, the default theme styles the series like a
line series: a 4 pixel stroke, the same color with transparency for the band, and 12 pixel points.
This sample plots the monthly low and high temperatures. The X axis uses Labels for the months, and the Y axis a
Labeler that adds the unit.

<UserControl
x:Class="AvaloniaSample.Lines.Range.View"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
xmlns:vms="using:ViewModelsSamples.Lines.Range"
x:DataType="vms:ViewModel">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<lvc:CartesianChart>
<lvc:CartesianChart.Series>
<lvc:XamlRangeLineSeries
Values="{Binding Temperatures}"
SeriesName="Temperature"
YToolTipLabelFormatter="{Binding TempTooltipFormatter}"/>
</lvc:CartesianChart.Series>
<lvc:CartesianChart.XAxes>
<lvc:XamlAxis Labels="{Binding Months}"/>
</lvc:CartesianChart.XAxes>
<lvc:CartesianChart.YAxes>
<lvc:XamlAxis Labeler="{Binding TempLabeler}"/>
</lvc:CartesianChart.YAxes>
</lvc:CartesianChart>
</UserControl>
using System;
using LiveChartsCore.Defaults;
using LiveChartsCore.Kernel;
namespace ViewModelsSamples.Lines.Range;
// Range line series draws two smoothed curves (one through each set of high /
// low endpoints) and a band between them. The classic use case is a min / max
// envelope: monthly temperature range, daily price high / low, forecast
// confidence intervals, etc. Here we show average monthly temperatures (low /
// high) for a Mediterranean-ish climate over a year — the band visually
// conveys "the temperature lives somewhere in here" at each point in time.
//
// MVVM split: this ViewModel exposes raw data + lambda formatters. The
// platform XAML views declare the chart structure using <lvc:XamlRangeLineSeries>
// with each property bound to a member of this VM.
public class ViewModel
{
public RangeValue[] Temperatures { get; set; } =
[
new(low: 8, high: 16), // Jan
new(low: 9, high: 17), // Feb
new(low: 11, high: 20), // Mar
new(low: 13, high: 23), // Apr
new(low: 16, high: 27), // May
new(low: 20, high: 31), // Jun
new(low: 22, high: 33), // Jul
new(low: 22, high: 33), // Aug
new(low: 19, high: 29), // Sep
new(low: 16, high: 24), // Oct
new(low: 12, high: 20), // Nov
new(low: 9, high: 17), // Dec
];
public string[] Months { get; set; } =
[
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
];
// Y axis labeler — appended °C onto whatever value the axis renders.
public Func<double, string> TempLabeler { get; set; } =
value => $"{value:0}°C";
// The point's Coordinate carries TertiaryValue = low and PrimaryValue = high
// (see RangeValue.OnCoordinateChanged). Format as a temperature span.
public Func<ChartPoint, string> TempTooltipFormatter { get; set; } = point =>
$"{point.Coordinate.TertiaryValue:0}°C → {point.Coordinate.PrimaryValue:0}°C";
}
The hover area of each value covers the whole band at that X, from the low point to the high point, so the tooltip opens anywhere inside the band, not only over the points.
Range columns
A RangeColumnSeries draws each bar from Low to High on the Y axis. Low does not need to be the smaller
value, the bar always covers the space between both.
A waterfall chart uses that: each bar goes from the previous total (Low) to the new total (High), so a step that
lowers the total has a Low greater than its High. The first and last bars start at zero to show the totals.
The X axis names each step with Labels, and YToolTipLabelFormatter shows the change of each step in the tooltip,
from Low to High:

<UserControl
x:Class="AvaloniaSample.Bars.Waterfall.View"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
xmlns:vms="using:ViewModelsSamples.Bars.Waterfall"
x:DataType="vms:ViewModel">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<lvc:CartesianChart>
<lvc:CartesianChart.Series>
<lvc:XamlRangeColumnSeries
Values="{Binding Steps}"
SeriesName="Cash flow"
YToolTipLabelFormatter="{Binding StepTooltipFormatter}"/>
</lvc:CartesianChart.Series>
<lvc:CartesianChart.XAxes>
<lvc:XamlAxis Labels="{Binding StepNames}"/>
</lvc:CartesianChart.XAxes>
<lvc:CartesianChart.YAxes>
<lvc:XamlAxis AxisName="Balance" MinLimit="0"/>
</lvc:CartesianChart.YAxes>
</lvc:CartesianChart>
</UserControl>
using System;
using LiveChartsCore.Defaults;
using LiveChartsCore.Kernel;
namespace ViewModelsSamples.Bars.Waterfall;
// Waterfall charts visualize a running total through positive and negative
// changes. Each bar's rectangle spans [previousTotal, newTotal] — the exact
// shape RangeColumnSeries renders. The first and last bars are "anchored"
// totals at zero (Start and End); intermediate bars carry the deltas.
//
// MVVM split: this ViewModel exposes raw data + formatters. The platform XAML
// views declare the chart structure using <lvc:XamlRangeColumnSeries> with
// each property bound to a member of this VM.
public class ViewModel
{
public RangeValue[] Steps { get; set; } =
[
new(0, 100), // Start balance
new(100, 150), // Sales (+50)
new(150, 180), // Other income (+30)
new(180, 130), // Costs (-50)
new(130, 110), // Tax (-20)
new(0, 110), // End balance
];
public string[] StepNames { get; set; } =
[
"Start", "Sales", "Other income", "Costs", "Tax", "End",
];
public Func<ChartPoint, string> StepTooltipFormatter { get; set; } = point =>
{
var from = point.Coordinate.TertiaryValue;
var to = point.Coordinate.PrimaryValue;
var delta = to - from;
var sign = delta >= 0 ? "+" : "−";
return $"{from:N0} → {to:N0} ({sign}{System.Math.Abs(delta):N0})";
};
}
Range rows
A RangeRowSeries draws each bar from Low to High on the X axis. A Gantt chart uses it with dates: each task
stores the Ticks of its start and end dates, a DateTimeAxis on the X axis turns the ticks back into dates, and the
Y axis names the tasks with Labels.
The tooltip formatter turns both ends of the bar back into dates, so the first task reads "from Jun 01 to Jun 06":

<UserControl
x:Class="AvaloniaSample.Bars.Gantt.View"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
xmlns:vms="using:ViewModelsSamples.Bars.Gantt"
x:DataType="vms:ViewModel">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<lvc:CartesianChart>
<lvc:CartesianChart.Series>
<lvc:XamlRangeRowSeries
Values="{Binding Tasks}"
SeriesName="Project"
YToolTipLabelFormatter="{Binding TaskTooltipFormatter}"/>
</lvc:CartesianChart.Series>
<lvc:CartesianChart.XAxes>
<lvc:XamlDateTimeAxis
AxisName="Date"
Interval="2.00:00:00"
DateFormatter="{Binding DateFormatter}"/>
</lvc:CartesianChart.XAxes>
<lvc:CartesianChart.YAxes>
<lvc:XamlAxis Labels="{Binding TaskNames}"/>
</lvc:CartesianChart.YAxes>
</lvc:CartesianChart>
</UserControl>
using System;
using LiveChartsCore.Defaults;
using LiveChartsCore.Kernel;
namespace ViewModelsSamples.Bars.Gantt;
// Gantt charts present each task as a horizontal bar spanning [start, end] on
// a date / time axis, with the Y axis listing task names. RangeRowSeries fits
// this exactly: each RangeValue carries Low = start.Ticks and High = end.Ticks;
// XamlDateTimeAxis on X converts the ticks back to dates for the tick labels,
// and a custom tooltip formatter prints the date range on hover.
//
// MVVM split: this ViewModel exposes raw data + formatters. The platform XAML
// views declare the chart structure using <lvc:XamlRangeRowSeries> /
// <lvc:XamlDateTimeAxis> with each property bound to a member of this VM.
public class ViewModel
{
private static readonly DateTime s_projectStart = new(2026, 6, 1);
public RangeValue[] Tasks { get; set; } =
[
MakeTask(0, 5), // Design
MakeTask(3, 8), // Backend API
MakeTask(5, 12), // Frontend
MakeTask(7, 14), // Integration
MakeTask(10, 18), // Testing
MakeTask(14, 20), // Deploy
];
public string[] TaskNames { get; set; } =
[
"Design",
"Backend API",
"Frontend",
"Integration",
"Testing",
"Deploy",
];
public Func<DateTime, string> DateFormatter { get; set; } =
date => date.ToString("MMM dd");
// The bar's Coordinate carries TertiaryValue = start.Ticks and
// PrimaryValue = end.Ticks (see RangeValue.OnCoordinateChanged). Convert
// each back to a DateTime for a human-friendly tooltip.
public Func<ChartPoint, string> TaskTooltipFormatter { get; set; } = point =>
{
var start = new DateTime((long)point.Coordinate.TertiaryValue);
var end = new DateTime((long)point.Coordinate.PrimaryValue);
return $"from {start:MMM dd} to {end:MMM dd}";
};
private static RangeValue MakeTask(int startDayOffset, int endDayOffset) =>
new(s_projectStart.AddDays(startDayOffset).Ticks,
s_projectStart.AddDays(endDayOffset).Ticks);
}
Tooltips
By default, the tooltip shows each point as low → high, both formatted by the value axis: its Labels when it has
them, otherwise its Labeler. The value axis is the Y axis for range lines and columns, and the X axis for range
rows, so in the Gantt chart above the tooltip already shows dates.
YToolTipLabelFormatter replaces that text. In the formatter, point.Coordinate.TertiaryValue is the low value and
point.Coordinate.PrimaryValue is the high value. The range line sample above adds the unit to both values, and the
waterfall sample shows the change of each step:
new RangeColumnSeries<RangeValue>
{
Values = steps,
YToolTipLabelFormatter = point => // mark
{
var from = point.Coordinate.TertiaryValue; // mark
var to = point.Coordinate.PrimaryValue; // mark
var delta = to - from;
var sign = delta >= 0 ? "+" : "−";
return $"{from:N0} → {to:N0} ({sign}{Math.Abs(delta):N0})";
}
}
The Gantt sample turns both values back into dates with new DateTime((long)point.Coordinate.TertiaryValue).
On a range row, YToolTipLabelFormatter still sets this text, even though the values are on the X axis. The title of
the tooltip is the label of the Y axis for that row, and XToolTipLabelFormatter replaces it.
Shared with line and column series
Range series take most properties of the series they are based on, so these articles apply to them too:
- The range line has the paints,
LineSmoothness,GeometrySize,EnableNullSplittingand data labels of the line series.LineSmoothnessapplies to both curves. - Range columns and rows have the paints,
Rx,Ry,MaxBarWidth,PaddingandIgnoresBarPositionof the column and row series. The theme styles them like the other bars.
Range series cannot be stacked. When a point is added, it grows from the middle of its range to both ends.
Data, names and updates
Valuestakes anyIEnumerable<T>. Use anObservableCollection<T>and the chart animates every added, removed or replaced value, see automatic updates.- To plot your own types, see mappers.
Name(SeriesNamein XAML) is shown in tooltips and legends. When it is not set, the tooltip shows the values without a series name.ZIndexsets which series draws on top, andIsVisibleshows or hides the series.